<?php

namespace App\Models\GameLog;

use App\Scopes\PlayerLoginScope;
use Illuminate\Database\Eloquent\Model;

/**
 * 玩家登陆表.
 */
class LogPlayerLogin extends Model
{
    protected $connection = 'mysql_game_log';
    protected $table = 'log_player_login';
    public $timestamps = false;

    /**
     * 模型的「启动」方法.
     */
    protected static function boot()
    {
        parent::boot();
        static::addGlobalScope(new PlayerLoginScope());
    }
}
